/**
 * 
 */
package es.ibm.santillana.mdm.postsave.catalog;


import com.ibm.pim.catalog.item.Item;
import com.ibm.pim.common.exceptions.PIMException;
import com.ibm.pim.extensionpoints.ItemPrePostProcessingFunctionArguments;
import com.ibm.pim.extensionpoints.PostCategorySaveFunctionArguments;
import com.ibm.pim.extensionpoints.PostCollaborationCategorySaveFunctionArguments;
import com.ibm.pim.extensionpoints.PostCollaborationItemSaveFunctionArguments;
import com.ibm.pim.extensionpoints.PostItemSaveFunctionArguments;
import com.ibm.pim.extensionpoints.PostSaveFunction;
import com.ibm.pim.utils.Logger;

import es.ibm.santillana.mdm.common.util.SantillanaLogger;

/**
 * @author Benito
 *
 */
public abstract class CatalogGenericPostSave implements
		PostSaveFunction {

	

	/**
	 * 
	 */
	public CatalogGenericPostSave() {
		// TODO Auto-generated constructor stub
	}
	/* (non-Javadoc)
	 * @see com.ibm.pim.extensionpoints.PrePostProcessingFunction#prePostProcessing(com.ibm.pim.extensionpoints.CategoryPrePostProcessingFunctionArguments)
	 */
	public void finishPostsave(PostItemSaveFunctionArguments arg0) {
		Item itm = arg0.getItem();
		com.ibm.pim.catalog.Catalog ctg = itm.getCatalog();
		Logger log = SantillanaLogger.getLogger();
		log.logInfo("*******Finalizando en el PostSave del catalogo '" + ctg.getName() + "' con el item  '" + itm.getPrimaryKey() + "'");

	}

	/* (non-Javadoc)
	 * @see com.ibm.pim.extensionpoints.PrePostProcessingFunction#prePostProcessing(com.ibm.pim.extensionpoints.ItemPrePostProcessingFunctionArguments)
	 */
	@Override
	public void postsave(PostItemSaveFunctionArguments arg0)    {
		Item itm = arg0.getItem();
		com.ibm.pim.catalog.Catalog ctg = itm.getCatalog();
		Logger log = SantillanaLogger.getLogger();
		log.logInfo("*******Entrando en el PostSave del catalogo '" + ctg.getName() + "' con el item  '" + itm.getPrimaryKey() + "'");
		
	}
	



	public void postsave(PostCategorySaveFunctionArguments arg0) {
		// TODO Auto-generated method stub
		
	}


	public void postsave(PostCollaborationItemSaveFunctionArguments arg0) {
		// TODO Auto-generated method stub
		
	}



	public void postsave(PostCollaborationCategorySaveFunctionArguments arg0) {
		// TODO Auto-generated method stub
		
	}



	
}
